# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="nXML is a C library for parsing, writing and creating XML files."
HOMEPAGE="http://autistici.org/bakunin/codes.php"
SRC_URI="http://autistici.org/bakunin/libmrss/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="examples"

DEPEND="curl? ( >=net-misc/curl-7.12.2 )
		>=dev-libs/libnxml-0.16"

src_compile() {
	econf || die "econf failed"
	emake || die "emake failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "install failed"
	dodoc README ChangeLog NEWS

	if use examples ; then
		insinto /usr/share/doc/${PF}/test
		doins test/*.c
	fi
}
